package com.qingmeng.project.service.impl;

import com.qingmeng.project.service.TextService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.apache.dubbo.rpc.RpcContext;

@Slf4j
@DubboService
public class TextServiceImpl implements TextService {
    @Override
    public String getName(String name) {
        log.info("Hello" + name + ", request from consumer: " + RpcContext.getServiceContext().getRemoteAddressString());
        return "Hello" + name;
    }
}
